package com.springboot.security.form;

import lombok.*;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Identity {

    /**
     * 用户ID
     */
    @NotBlank(message = "用户ID不能为空")
    private String id;
    /**
     * 用户类型
     */
    @NotNull(message = "用户类型不能为空")
    private Integer type;

}
